<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">帮助中心</a></li>
    </ul>
    <form action="{:url('AdminIndex/configEdit')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <input name="id" value="{$id}" style="display: none">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th style="text-align: center">客户电话</th>
                        <td>
                            <input name="phone" class="form-control" style="width:200px" value="{$phone}" placeholder="格式：1879665331">
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align: center">帮助中心</th>
                        <td>
                            <textarea class="form-control" name="helpcenter" style="height: 300px;">{$helpcenter}</textarea>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <th style="text-align: center">你根本不知道的花加</th>
                        <td> <script type="text/plain" id="content" name="knows[post_content]" style="height:200px;"></script>
                        </td>
                    </tr>
                    <tr style="display:none">
                        <th style="text-align: center">完美服务带你飞</th>
                        <td><script type="text/plain" id="content2" name="service[post_content]" style="height:200px;"></script>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    $(function () {
        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content');

        editorcontent2 = new baidu.editor.ui.Editor();
        editorcontent2.render('content2');
        try {
            editorcontent.sync();
            editorcontent2.sync();
        } catch (err) {
        }
        editorcontent.ready(function(){
            console.log('{$knows}');
            editorcontent.setContent('{$knows}');
        });
        editorcontent2.ready(function(){
            editorcontent2.setContent('{$service}');
        });

        //$('#more-template-select').val('page');
    });
</script>
</body>
</html>